
import http from "./http";
export default ({
  //我的会话
  getSessionInfo(data) {
    return http.get({ url: "/sign/access/session/fetch", data: data });
  },
  //系统登录日志
  getloginHistory(data) {
    return http.get({ url: "/sign/historys/loginHistory/fetch", data: data });
  },
  //应用访问日志
  getAppHistory(data) {
    return http.get({ url: "/sign/historys/loginAppsHistory/fetch", data: data });
  },
  //社交关联
  getsocialsignon(data) {
    return http.get({ url: "/sign/config/socialsignon/fetch", data: data });
  },
  //时间令牌
  gettimebased(data) {
    return http.get({ url: "/sign/config/timebased?generate=NO", data: data });
  },
  //绑定账号
  bindAppApi(provider) {
    return http.get({ url: "/sign/logon/oauth20/authorize/" + provider })
  },
  //解除绑定
  deleteAppApi(ids) {
    return http.post({ url: "/sign/config/socialsignon/delete?ids=" + ids })
  },
})
